package a.e;

import a.c.*;
import a.c.d;
import a.c.k;
import a.c.m;
import a.i.y;
import a.j.g;

import java.io.*;
import java.net.URL;

public abstract class e
{
  public static int a;
  public static int b;
  
  public abstract void a(g paramg, OutputStream paramOutputStream)
    throws IOException;
  
  public void a(g paramg, k paramk, OutputStream paramOutputStream)
    throws IOException
  {
    y localy = new y(paramg);
    a(localy, paramk);
    a(paramg, paramOutputStream);
    localy.g();
  }
  
  public abstract void a(g paramg, InputStream paramInputStream)
    throws IOException;
  
  public abstract String a();
  
  public abstract String b();
  
  public void a(g paramg, String paramString)
    throws IOException
  {
    FileOutputStream localFileOutputStream = new FileOutputStream(paramString);
    try
    {
      a(paramg, localFileOutputStream);
    }
    finally
    {
      if (b == 0)
      {
        if (localFileOutputStream != null) {
          localFileOutputStream.flush();
        }
      }
      else {
        localFileOutputStream.close();
      }
    }
  }
  
  public void a(g paramg, k paramk, String paramString)
    throws IOException
  {
    y localy = new y(paramg);
    a(localy, paramk);
    a(paramg, paramString);
    localy.g();
  }
  
  public void b(g paramg, String paramString)
    throws IOException
  {
    FileInputStream localFileInputStream = new FileInputStream(paramString);
    URL localURL = paramg.cb();
    paramg.a(new File(paramString).toURL());
    try
    {
      a(paramg, localFileInputStream);
    }
    catch (IOException localIOException)
    {
      paramg.a(localURL);
      throw localIOException;
    }
    finally
    {
      localFileInputStream.close();
    }
  }
  
  public void a(g paramg, URL paramURL)
    throws IOException
  {
    InputStream localInputStream = paramURL.openStream();
    URL localURL = paramg.cb();
    paramg.a(paramURL);
    try
    {
      a(paramg, localInputStream);
    }
    catch (IOException localIOException)
    {
      paramg.a(localURL);
      throw localIOException;
    }
    finally
    {
      localInputStream.close();
    }
  }
  
  public static ObjectInputStream a(String paramString)
    throws IOException
  {
    FileInputStream localFileInputStream = new FileInputStream(paramString);
    BufferedInputStream localBufferedInputStream = new BufferedInputStream(localFileInputStream);
    return new ObjectInputStream(localBufferedInputStream);
  }
  
  public static ObjectOutputStream b(String paramString)
    throws IOException
  {
    FileOutputStream localFileOutputStream = new FileOutputStream(paramString);
    return new ObjectOutputStream(localFileOutputStream);
  }
  
  public boolean c()
  {
    return true;
  }
  
  public boolean d()
  {
    return true;
  }
  
  public boolean e()
  {
    return true;
  }
  
  protected void a(y paramy, k paramk)
  {
    int j = b;
    int i = a;
    ab localab = new ab();
    bb localbb = new bb();
    Object localObject1 = paramy.j().w();
    Object localObject2;
    do
    {
      if (!((m)localObject1).e()) {
        break;
      }
      localObject2 = ((m)localObject1).a();
      if (j == 0)
      {
        if (!a((d)localObject2, paramk)) {
          localab.add(localObject2);
        }
        ((m)localObject1).f();
      }
    } while (i == 0);
    localObject1 = paramy.j().v();
    do
    {
      if (!((w)localObject1).e()) {
        break;
      }
      localObject2 = ((w)localObject1).d();
      if ((j == 0) && (i != 0)) {
        return;
      }
      if (j == 0)
      {
        if (!a((a.c.e)localObject2, paramk)) {
          localbb.add(localObject2);
        }
        ((w)localObject1).f();
      }
    } while (i == 0);
    paramy.a(localab);
    if (j == 0) {
      paramy.a(localbb);
    }
  }
  
  protected boolean a(a.c.e parame, k paramk)
  {
    int j = b;
    int i = a;
    if (((j == 0) && (paramk == null)) || ((j != 0) || (paramk.getBool(parame)))) {
      return true;
    }
    m localm = parame.l();
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      if (i != 0) {
        break label87;
      }
      if (a(locald, paramk)) {
        return true;
      }
      localm.f();
    } while (i == 0);
    label87:
    return false;
  }
  
  protected boolean a(d paramd, k paramk)
  {
    int i = b;
    if ((i != 0) || (paramk != null))
    {
      if (i != 0) {
        break label61;
      }
      if (!paramk.getBool(paramd))
      {
        if ((i == 0) && (!paramk.getBool(paramd.e()))) {
          break label64;
        }
        if (i != 0) {
          break label61;
        }
      }
    }
    label61:
    label64:
    return paramk.getBool(paramd.f());
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.e

 * JD-Core Version:    0.7.0.1

 */